package workspace.teaweb.Logistics.mappers;

import org.apache.ibatis.annotations.Param;
import workspace.teaweb.CRM.pojo.vo.CRMVO;
import workspace.teaweb.Logistics.pojo.dto.WarehouseDto;
import workspace.teaweb.Logistics.pojo.dto.WarehouseDto2;
import workspace.teaweb.Logistics.pojo.entity.Warehouse;

import java.util.List;

public interface WarehouseMapper {
    //仓库入库
         void insertWarehouse(Warehouse warehouse,@Param("CRMid") Long CRMid);

         void AutoinsertWarehouse(Warehouse warehouse);
         void updateWarehouse(WarehouseDto2 warehouse,@Param("CRMid") Long id);
         void AutoupdateWarehouse(WarehouseDto2 warehouse);
        void UserupdateWarehouse(Warehouse warehouse);
        Warehouse selectWarehouseById(Long Merchantid);
        List<Warehouse> selectAllWarehouse(WarehouseDto warehouse,@Param("CRMid") Long CRMid);
        void deleteWarehouseById(int id);

}
